project "ZuiLib"
	kind "StaticLib"
	language "C++"
	flags { "C++11" }
	
	includedirs{
		"./",
		"support",
		"thirdParty",
		"thirdParty/SDL2/include",
		"thirdParty/curl/include/",
		"thirdParty/freetype/include/",
		"thirdParty/lua/",
		"thirdParty/leveldb/include/",
		"thirdParty/ffmpeg/include/",
	}

	files {
		--support
		"support/**.h","support/**.hpp", "support/**.cpp","support/**.c",

		--zui
		"*.h", "*.cpp",
		
		--gfx
		"support/sdl_gfx/*.h", 
		"support/sdl_gfx/*.c",
		
		"common/*.h", "common/*.cpp",
		"font/*.h", "font/*.cpp",
		
		"animation/*.h", "animation/*.cpp",
	}

	if is_pfm("windows") then
		files {
			"thirdParty/wnd_shadow/*.h", 
			"thirdParty/wnd_shadow/*.cpp",
		}
	end

	if Config.support_video_control then
		files {
			"video/*.h", "video/*.cpp",
		}
	end

	if Config.use_ned_malloc then
		defines{"USE_NED_MALLOC","CURL_STATICLIB"}
	else
		defines{"CURL_STATICLIB"}
		
		removefiles{
			"support/malloc/*.h",
			"support/malloc/*.c",
		}
	end